package com.project.controller;

import com.project.bean.UserBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping("/speak")
    public String speak(){
        return "hello,你好";
    }

    @RequestMapping("add")
    public String   addUser(UserBean user,@RequestParam("phone") String tel){
        System.out.println(user + "    "+tel);
        return "添加成功";
    }
}
